<div class="grid_12">
<div id="areaImprimir">
   <table class="mi-tabla">
   <tr>
      <td>Nombre</td>
      <td colspan="3">
      <?php echo $mascota['Mascota']['nombre']?>
      </td>
   </tr>
   <tr>
      <td>Raza</td>
      <td colspan="3">
      <?php echo $mascota['Raza']['nombre']?>&nbsp;
      ( <?php echo $mascota['Camada']['variedad'] ?>)
      </td>
   </tr>
   <tr>
      <td colspan="4">Inscripci&oacute;n resgistro geneal&oacute;gico</td>
   </tr>
   <tr>
      <td>registro KCB</td>
      <td>microchip</td>
      <td>tatuaje</td>
      <td>
      codigo ext
      </td>
   </tr>
   <tr>
      <td>
      <?php echo $mascota['Mascota']['id']?>
      </td>
      <td>
      <?php echo $mascota['Mascota']['chip']?>
      </td>
      <td>
      <?php echo $mascota['Mascota']['num_tatuaje']?>
      </td>
      <td>
      <?php echo $mascota['Mascota']['codigo']?>
      </td>
   </tr>
   <tr>
      <td>
      Color/ se&ntilde;as
      </td>
      <td>
      <?php echo $mascota['Mascota']['color']?> / 
      <?php echo $mascota['Mascota']['senas']?>
      </td>
      <td>
      Hermanos
      </td>
      <td>
      <?php 
      if($mascota['Camada']['id'] != null):
      foreach($mascota['Camada'] as $hermano):?>
         <?php $hermano[''] ?>
      <?php endforeach;
      endif;
      ?> 
      </td>
   </tr>
   <tr>
      <td colspan="2">
         <table>
            <tr>
            <td>Nacido</td>
            <td>Sexo</td>
            </tr>
            <tr>
               <td>
               <?php echo $mascota['Mascota']['fecha_nacimiento'] ?>
               </td>
               <td>
               <?php echo $mascota['Mascota']['sexo']?>
               </td>
            </tr>
         </table>
      </td>
      <td>Consanguinidad</td>
      <td>
      <?php echo $mascota['Mascota']['consanguinidad'] ?>
      </td>
   </tr>
   <tr>
     <td>Afijo: 
     <?php echo $mascota['Criadero']['nombre']?>
     </td>
     <td>
     Registro FCI&nbsp;
     <?php echo $mascota['Criadero']['registro_fci']?>
     </td>
     <td>
     Propietario
     </td>
     <td colspan="2">
        <?php
        if($datosdueno != null): 
        echo $datosdueno['nombre'];
        endif;
        ?>
     </td>
   </tr>
   <tr>
      <td>Criador</td>
      <td>
      <?php echo $mascota['Criadero']['Propietario']['nombre'] ?>
      </td>
      <td>Direcci&oacute;n</td>
      <td>
      <?php
        if($datosdueno != null): 
        echo $datosdueno['direccion'];
        endif;
        ?>
      </td>
   </tr>
   <tr>
      <td>Direcci&oacute;n</td>
      <td>
      <?php echo $mascota['Criadero']['direccion'] ?>
      </td>
      <td>Tel&eacute;fonos</td>
      <td>
      <?php
        if($datosdueno != null): 
        echo $datosdueno['telefono1']."-".$datosdueno['telefono2']."-".$datosdueno['celular'];
        endif;
        ?>
      </td>
   </tr>
   <tr>
      <td>Tel&eacute;fonos</td>
      <td>
      <?php echo $mascota['Criadero']['telefono1'] ?>-
      <?php echo $mascota['Criadero']['telefono2'] ?>-
      <?php echo $mascota['Criadero']['celular1'] ?>-
      <?php echo $mascota['Criadero']['celular2'] ?>
      </td>
      <td>Fecha de transferencia</td>
      <td>
     <?php
        if($datosdueno != null): 
        echo $datosdueno['MascotasPropietario']['fecha_transfer'];
        endif;
     ?>
      </td>
   </tr>
   <tr>
      <td colspan="2">
      
      </td>
      <td>Lechigada</td>
      <td>
      <?php echo $mascota['Mascota']['lechigada'] ?>
      </td>
   </tr>
   <tr>
      <td colspan="2">SECRETARIA KCB</td>
      <td>Fecha emisi&oacute;n</td>
      <td>
      <?php echo date('d/m/Y')?>
      </td>
   </tr>
   </table>

</div><!--fin caja imprimir-->

</div>

<div class="grid_4">
      <div id="blocks" class="box tabbed">
        <div class="header">
        <h3>Acciones</h3>
        </div>
        <div class="content">
          <ul id="block-list-icons" class="block-list with-icon tab-content">
            <li class="i-16-calendar">
            <?php echo $this->Html->link('Listado denuncias', array('action'=>'index'))?>
            </li>
            <li class="i-16-application">
            <?php echo $this->Html->link('Registrar',array('controller'=>'denunciaservicio','action'=>'insertarservicio'))?>
            </li>
            <li class="i-16-drive">
            <?php echo $this->Form->button('imprimir', array('id'=>'btnimprimir'))?>
            <?php //echo $this->Html->link('imprimir',array('action'=>'#', 'id'=>'btnimprimir'))?>
            </li>
          </ul>
        </div> <!-- End of .content -->
        </div> <!-- End of .box -->
</div> <!-- End of .grid_4 -->
<script type="text/javascript">
   jQuery(document).ready(function() {

         jQuery("#btnimprimir").click(function() {
             //printElem({ leaveOpen: true, printMode: 'popup' });
             printElem({ overrideElementCSS: ['/kennel/css/print.css'] });
         });


     });
 function printElem(options){
     jQuery('#areaImprimir').printElement(options);
 }

 </script>